<?php
namespace Api\Controller;
use Think\Controller;
//use Home\Model\UsersModel;
class BaseController extends Controller {
    public function index(){
        echo 'BASE';

    }
    static public function ApiError($msg){
        $error=array(
            'status'=>'error',
            'error_msg'=>$msg,
        );
        return json_encode($error);
    }

    static public function ApiSuccess($msg){
        $success=array(
            'status'=>'success',
            'success_msg'=>$msg,
        );
        return json_encode($success);
    }

}